﻿using System;
using System.Web;

namespace NWebMock
{
    public class HttpCacheVaryByContentEncodingsWrapper : IHttpCacheVaryByContentEncodings
    {
        #region Constructors

        public HttpCacheVaryByContentEncodingsWrapper(HttpCacheVaryByContentEncodings varyByContentEncodings)
        {
            if (varyByContentEncodings == null)
            {
                throw new ArgumentNullException("varyByContentEncodings");
            }

            this.innerVaryByContentEncodings = varyByContentEncodings;
        }

        #endregion

        #region Fields

        private HttpCacheVaryByContentEncodings innerVaryByContentEncodings = null;

        #endregion

        #region Properties

        public bool this[string contentEncoding]
        {
            get
            {
                return this.innerVaryByContentEncodings[contentEncoding];
            }
            set
            {
                this.innerVaryByContentEncodings[contentEncoding] = value;
            }
        }

        #endregion
    }
}
